-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#58 add wildcard check for service, add ssl cert service run for fron…
…tend
- Loading branch information
1 parent
c3923e8
commit f319d8d
Showing
5 changed files
with
93 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {DefaultReturn, StatusCodes} from 'flyingfish_schemas'; | ||
import {SslCertService} from '../../../Service/SslCertService.js'; | ||
|
||
/** | ||
* Run | ||
*/ | ||
export class Run { | ||
|
||
/** | ||
* Run service | ||
* @returns {DefaultReturn} | ||
*/ | ||
public static async rundService(): Promise<DefaultReturn> { | ||
if (SslCertService.getInstance().isInProcess()) { | ||
return { | ||
statusCode: StatusCodes.INTERNAL_ERROR, | ||
msg: 'Scheduler is currently in process.' | ||
}; | ||
} | ||
|
||
await SslCertService.getInstance().invokeUpdate(); | ||
|
||
return { | ||
statusCode: StatusCodes.OK | ||
}; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters