Add boilerplate notifications controller, fix import order in app.ts

This commit is contained in:
Alex Gleason
2023-08-28 14:23:27 -05:00
parent 6d5add92a2
commit dfbad6b2e7
3 changed files with 17 additions and 9 deletions

View File

@@ -1,8 +1,7 @@
import { type AppController } from '@/app.ts';
import { Conf } from '@/config.ts';
import type { Context } from '@/deps.ts';
function instanceController(c: Context) {
const instanceController: AppController = (c) => {
const { host, protocol } = Conf.url;
/** Protocol to use for WebSocket URLs, depending on the protocol of the `LOCAL_DOMAIN`. */
@@ -48,6 +47,6 @@ function instanceController(c: Context) {
},
rules: [],
});
}
};
export default instanceController;
export { instanceController };