11 lines
285 B
TypeScript
11 lines
285 B
TypeScript
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;
|