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
export default { | |
// request is a string | |
async fetch(request) { | |
return "I’m a module!"; | |
} | |
} |
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
NLogTraceWriter.ConfigureRenderers(); | |
var config = new LoggingConfiguration(); | |
var target = new FileTarget | |
{ | |
AutoFlush = true, | |
CreateDirs = true, | |
FileName = "${basedir}/my_log_file.log", | |
Layout = "${level}|${message}| ${webapi-trace:kind=true}|" | |
}; |
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
describe "responder" do | |
it ("should be a G5Api::ApiResponder") { subject.responder.should == G5Api::ApiResponder } | |
end | |
it ("should respond to xml mime type") { subject.mimes_for_respond_to.should have_key :xml } | |
it ("should respond to json mime type") { subject.mimes_for_respond_to.should have_key :json } | |
it "should add skip types option before xml serialization" do |