WIP Hello world
This commit is contained in:
10
handlers/nprofile.ts
Normal file
10
handlers/nprofile.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Context } from "@oak/oak";
|
||||
|
||||
const nprofileHandler = function (context: Context) {
|
||||
const { request, response } = context;
|
||||
const fullPath = request.url.pathname;
|
||||
|
||||
response.body = `You are viewing an nprofile with address: ${fullPath}`;
|
||||
};
|
||||
|
||||
export default nprofileHandler;
|
||||
Reference in New Issue
Block a user